package com.sskj.xyft.verify;

import com.sskj.base.utils.RxUtils;
import com.sskj.xyft.BasePresenter;
import com.sskj.xyft.api.Api;
import com.sskj.xyft.api.ApiObserver;


/**
 * @author Hey
 * Create at  2019/03/22
 */
class IntroductionPresenter extends BasePresenter<IntroductionActivity> {
    // 获取协议
    public void getVeriryData(String data) {
        Api.getInstance().getVerifyData(data)
                .compose(RxUtils.transform())
                .subscribe(new ApiObserver<String>(this, true) {
                    @Override
                    public void onSuccess(String data) {
                        mView.updateUi(data);
                    }

                    @Override
                    public void onError(Throwable e) {
                        super.onError(e);
                    }
                });
    }


}
